const openDefaultBrowser = function (url) {
    var exec = require('child_process').exec;
    switch (process.platform) {
        case 'darwin':
            exec('open ' + url);
            break;
        case 'win32':
            exec('start ' + url);
            break;
        default:
            exec('xdg-open', [url]);
            break;
    }
}


const urls = [
    { text: "西瓜视频", url: "https://www.ixigua.com/" },
    { text: "抖音", url: "https://www.douyin.com/discover" },
    { text: "小红书", url: "https://www.xiaohongshu.com/explore" },
    { text: "下厨房", url: "https://www.xiachufang.com/" },
    { text: "美食杰", url: "https://www.meishij.net/" },
    { text: "香哈菜谱", url: "https://www.xiangha.com/" },
    { text: "美食天下", url: "https://www.meishichina.com/" }, 
    { text: "天天菜谱", url: "https://www.tiantiancaipu.com/" },
    { text: "美食佳人", url: "http://www.meishijr.com/" },
    { text: "大厨艺", url: "http://www.dachuyi.com/" },
    { text: "豆果美食", url: "https://www.douguo.com/" },
    { text: "网上厨房", url: "https://www.ecook.cn/" },
    { text: "聚餐网", url: "https://www.jucanw.com/" },
    { text: "乐做菜", url: "https://www.lezuocai.com/" },
    { text: "爱料理", url: "https://icook.tw/" },
];

for (let item of urls) {
    openDefaultBrowser(item.url);
}